﻿using System.Data.Objects;

namespace NorthwindPocoClasses
{
	public class NorthwindPocoObjectContext : ObjectContext
	{
		public NorthwindPocoObjectContext() : base("name=NorthwindPocoEntities", "NorthwindPocoEntities")
		{
			_customers = CreateObjectSet<Customer>();
			_orders = CreateObjectSet<Order>();
		}

		private readonly ObjectSet<Order> _orders;
		private readonly ObjectSet<Customer> _customers;

		public ObjectSet<Customer> Customers
		{
			get { return _customers; }
		}

		public ObjectSet<Order> Orders
		{
			get { return _orders; }
		}
	}
}
